
CROSS_COMPILE := /home/mdy/MyGit/qemu_linux_env/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
KERNEL_ROOT := /home/mdy/MyGit/qemu_linux_env/linux-5.4.50
KO_DIR := /home/mdy/MyGit/qemu_linux_env/qemu_share/ko/


obj-m := pfn_valid_test.o

all:
	make -C $(KERNEL_ROOT) ARCH=arm64 CROSS_COMPILE=$(CROSS_COMPILE) M=$(PWD) modules
clean:
	make -C $(KERNEL_ROOT) ARCH=arm64 CROSS_COMPILE=$(CROSS_COMPILE) M=$(PWD) clean

install:
	cp pfn_valid_test.ko $(KO_DIR)
